uid |
---|
NetCode.Data.Origins |
From a developer perspective you have three kinds of Data:
In addition you have Settings and Resources:
And you have Context information:
- MyContext / CmsContext
- MyPage
- MyUser
- MyView
- etc.
The complete App Data is always available in these objects:
[!include""]
[!include""]
If the View is configured for manual content-editing or uses a Query then Instance Data is automatically prepared in these objects:
[!include""]
Your code can also retrieve data using normal C# code to do things like
- Get lists of files from ADAM or the file system
- Read data from SQL
- Manually parse CSV files or access external Web Services
- Use DataSources to get SQL, CSV or other data
Configuration is usually found on specific objects which are configured. There are three types:
- View Configuration
- App Configuration
- Feature activations
Settings usually affect templates / Razor or C# WebAPIs. They are usually configured at various levels like on the View, App, Site or Global.
C# code will usually get these settings from the Settings
object which consolidates all the settings.
👉 See Settings
Resources are meant to provide translated labels, logos etc. You can configure them at View, App, Site or Global level.
👉 See Resources
- Introduced in 2sxc v1
- App.Data added ca. 2sxc 6
- App.Query added ca. 2sxc 7
- Settings and Resources added in 2sxc 12